package com.tianxia120.website.data.event;

import com.tianxia120.website.data.utils.RongYunSysMessage;
import net.dreamlu.event.core.ApplicationEvent;
import net.dreamlu.event.core.EventListener;

/**
 * @createTime: 2018/10/15 15:17
 * @author: HingLo
 * @description: 事件测试
 */
public class Test1Event extends ApplicationEvent {
    public Test1Event(Object source) {
        super(source);
    }

    @EventListener(events = Test1Event.class, async = true)
    public void listenTest1Event(Test1Event event) {
        RongYunSysMessage rongYunSysMessage = (RongYunSysMessage) event.getSource();
        System.out.println("Test1Event：" + rongYunSysMessage);
    }


}
